﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using SilverlightInEnterprise.Caching.ServiceContract.DTO;

namespace SilverlightInEnterprise.Caching.Web
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "StaticDataService" in code, svc and config file together.

    public class StaticDataService : IStaticDataService
    {
        private static Product[] Products = new Product[]
                                                {
                                                    new Product() {DisplayName = "Windows 7",Id =1,IsTaxable = true,Price = 200},
                                                    new Product() {DisplayName = "Windows 8",Id =2,IsTaxable = true,Price = 400},
                                                    new Product() {DisplayName = "Windows Phone 7",Id =3,IsTaxable = false,Price = 199},
                                                    new Product() {DisplayName = "Visual Studio 2010 Epic Edition",Id =4,IsTaxable = true,Price = 560}
                                                };

        public IEnumerable<Product> GetProducts()
        {
            return Products;
        }

        public IEnumerable<ProductCategory> GetProductCategories()
        {
            throw new NotImplementedException();
        }
    }
}
